#include("_layout.html")
#@layout()

### ********************************* 定义页面标题
#define title()
首页
#end

### ********************************* css导入
#define import_css()
#end

### ********************************* js导入
#define import_js()
#end

### ********************************* Body内容区开始
#define body()
	#adPlaceList(categoryId=1)
		#for(adPlace : adPlaceList)
			#if(adPlace.style=="carousel")
	<!-- banner部分 -->
	<div>
		<div class="layui-carousel" id="banner">
			<div carousel-item>
				#adList(placeId=adPlace.id)
					#for(ad : adList)
				<div>
					<img src="#(ad.img)">
					<div class="panel">
						<p class="title">#(ad.title)</p>
						<p>#(ad.subtitle)</p>
					</div>
				</div>
					#end
				#end
			</div>
		</div>
	</div>
			#else if(adPlace.style=="product")
	<!-- main部分 -->
	<div class="main-product">
		<div class="layui-container">
			<p class="title">
				#(adPlace.name)
			</p>
			<div class="layui-row layui-col-space25">
				#adList(placeId=adPlace.id)
					#for(ad : adList)
				<div class="layui-col-sm6 layui-col-md3">
					<div class="content">
						<div>
							<img src="#(ad.img)">
						</div>
						<div>
							<p class="label">#(ad.title)</p>
							<p>#(ad.subtitle)</p>
						</div>
						<a href="#(ad.url)">查看产品 ></a>
					</div>
				</div>
					#end
				#end
			</div>
		</div>
	</div>
			#else if(adPlace.style=="service")
	<div class="main-service">
		<div class="layui-container">
			<p class="title">
				#(adPlace.name)
			</p>
			<div class="layui-row layui-col-space25 layui-col-space80">
				#adList(placeId=adPlace.id)
					#for(ad : adList)
				<div class="layui-col-sm6">
					<div class="content">
						<div class="content-left">
							<img src="#(ad.img)">
						</div>
						<div class="content-right">
							<p class="label">#(ad.title)</p>
							<span></span>
							<p>#(ad.subtitle)</p>
						</div>
					</div>
				</div>
					#end
				#end
			</div>
			<div class="service-more">
				<a href="">查看更多</a>
			</div>
		</div>
	</div>
			#end
		#end
	#end
#end
### ********************************* Body内容区结束

### ********************************* 脚本区开始
#define script()
#end
### ********************************* JS脚本区结束